package com.tansuo365.test1.mapper.othermapper;

import com.tansuo365.test1.bean.otherbean.Role;

import java.util.List;

/*角色Mapper层*/
public interface RoleMapper {

	int deleteByPrimaryKey(int id);
	/*根据用户id删除user_role数据对应关系元组 */
	int deleteByUserId(int id);

	List<Role> selectByUserId3Table(int id);

	//动态插入role
	int insertSelective(Role role);

	//动态获取Role表数据
	List<Role> selectRoleSelective(Role role);

	List<Role> selectRoleList();

	Role selectByPrimaryKey(int id);

	Role selectByName(String name);

	//动态更新role
	int updateByPrimaryKeySelective(Role role);

}